import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from './lang'
import './permission'

// css 初始化
import '@/assets/css/reset.css'
// iconfont
import '@/assets/css/iconfont.css'


// 全局引入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 挂载网络请求非方法
import api from '@/api/index.js'
Vue.prototype.$api = api;

//import axios from 'axios'
//Vue.prototype.$axios = axios;
//axios.defaults.baseURL = '/api'

// 英文转中文
//import ElementPlus from 'element-plus'
//import locale from 'element-plus/lib/locale/lang/zh-cn'
//app.use(ElementPlus,{locale})    // 需要改变的地方,加入locale -->



// 引入导出 组件  注册全局组件
import JsonExcel from 'vue-json-excel'
Vue.component('downloadExcel',JsonExcel)

// 注册全局组件
import Breadcrumb from './components/Breadcrumb.vue'
Vue.component('Breadcrumb',Breadcrumb)


new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
